package com.tyk.bookstore.front.order.strategy.split.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author tyk
 * @description SplitDto
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SplitDto {
    @Schema(description = "仓库ID")
    private Long warehouseId;
    @Schema(description = "该仓库下待发送的商品及其库存")
    private List<Stock> stockList;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Stock {
        @Schema(description = "书籍ID")
        private Long bookId;
        @Schema(description = "书籍数量")
        private Long num;
    }
}
